package com.excilys.capicsoubank.webservices.rest;

import javax.ws.rs.Consumes;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.Response;

import com.excilys.capicsoubank.dto.Transfer;
import com.excilys.capicsoubank.exception.NegativeBalanceException;

@Path("/transfer")
@Produces("application/json")
public interface TransferWebService {

	@POST
	@Consumes("application/json")
	Response transferJson(Transfer transfer) throws NegativeBalanceException;
}
